<?php
    header("Content-Type: text/html;charset=utf-8");
    include 'Config.class.php';
    if(!empty($_POST['pwd'])){
     if(md5($_POST['pwd'])==Config::get('pwd')){
         $data=Config::getRecords();
         if(isset($data)){
             echo '获奖记录:<br/><br/>';
             foreach($data as $re){
                 echo $re->created_at.' '.$re->phone.'<br/>';
             }
         }else{
             echo '没有记录';
         }
     }else{
         echo '密码错误！';
     }
    }else{
        echo '请输入密码!';
    }
